package com.example.demomybatisplus.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum SexEnum {
    MALE(1,"男"),
    FEMAIL(2,"女");
    @EnumValue //将注解所标识的属性的值存到数据库中
    private Integer sex;
    private String sexName;
    SexEnum(Integer sex,String sexName){
        this.sex=sex;
        this.sexName=sexName;
    }
}
